#ifndef CODING_INTERVIEWS_COMMON_H
#define CODING_INTERVIEWS_COMMON_H

#include <vector>
#include <ostream>

template <typename T>
std::ostream &operator<<(std::ostream &out, const std::vector<T> &list) {
    out << "vector(";
    for (size_t index = 0; index != list.size(); ++index) {
        out << list[index];
        if (index != list.size() - 1) {
            out << ", ";
        }
    }
    out << ")";
    return out;
}

#endif //CODING_INTERVIEWS_COMMON_H
